#include "ioCC2530.h"

#define LED3 P1_0
#define LED4 P1_1
#define LED5 P1_2
#define LED6 P1_3

void Delay(unsigned int t)
{
  while (t--);
}
void initPort()
{
  P1SEL &= ~0x0F; // 0000 1111
  P1DIR |= 0x0F;
}

void run()
{
  LED3 = 1;
  Delay(60000);
  LED4 = 1;
  Delay(60000);
  LED5 = 1;
  Delay(60000);
  LED6 = 1;
  Delay(60000);
  LED3 = 0;
  Delay(60000);
  LED4 = 0;
  Delay(60000);
  LED5 = 0;
  Delay(60000);
  LED6 = 0;
  Delay(60000);
  LED3 = 1;
  Delay(60000);
  LED4 = 1;
  Delay(60000);
  LED5 = 1;
  Delay(60000);
  LED6 = 1;
  Delay(60000);
  LED3 = 0;
  Delay(60000);
  LED4 = 0;
  Delay(60000);
  LED5 = 0;
  Delay(60000);
  LED6 = 0;
}

void main()
{
  initPort();
  while (1)
  {
    run();
  }
}